package com.tro.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tro.mail.dao.entity.MailSecret;
import com.tro.mail.dao.entity.MailSecretExample;
import com.tro.mail.dao.mapper.MailSecretMapper;
import com.tro.mail.service.MailSecretManager;

@Service
public class MailSecretManagerImp implements MailSecretManager{
	@Autowired
	MailSecretMapper mapper;

	@Override
	public int countByExample(MailSecretExample example) {

		return mapper.countByExample(example);
	}

	@Override
	public int deleteByExample(MailSecretExample example) {

		return mapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Long id) {

		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(MailSecret record) {

		return mapper.insert(record);
	}

	@Override
	public int insertSelective(MailSecret record) {

		return mapper.insertSelective(record);
	}

	@Override
	public List<MailSecret> selectByExample(MailSecretExample example) {

		return mapper.selectByExample(example);
	}

	@Override
	public MailSecret selectByPrimaryKey(Long id) {

		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(MailSecret record, MailSecretExample example) {

		return mapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(MailSecret record, MailSecretExample example) {

		return mapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(MailSecret record) {

		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(MailSecret record) {

		return mapper.updateByPrimaryKey(record);
	}
}